package net.sansi.v3correctserver.task;

import javax.validation.constraints.NotNull;

public class PriorityRunnable extends Thread implements Runnable, Comparable<PriorityRunnable> {

    private final int priority;

    public PriorityRunnable(int priority) {
        this.priority = priority;
    }

    @Override
    public int compareTo(@NotNull PriorityRunnable o) {
        return Integer.compare(o.priority, this.getPriority());
    }

    @Override
    public void run() {
    }
}